﻿//using System;
//using Birkelund.QueryStrings;
//using NUnit.Framework;
//using Birkelund.QueryStrings.Internals;
//using Birkelund.QueryStrings.Tokens;

//namespace Birkelund.QueryStrings.Test
//{
//    public class EncryptedTokenBaseTest
//    {
//        [Test]
//        [ExpectedException(typeof(ArgumentNullException))]
//        public void InitEncryptionTokenWithWrongEncryptorParameter()
//        {
//            EncryptedTestToken a = new EncryptedTestToken(null, Common.DefaultDecryptor);
//        }

//        [Test]
//        [ExpectedException(typeof(ArgumentNullException))]
//        public void InitEncryptionTokenWithWrongDecryptorParameter()
//        {
//            EncryptedTestToken a = new EncryptedTestToken(Common.DefaultEncryptor, null);
//        }

//        [Test]
//        public void EncryptDecrypt()
//        {
//            EncryptedTestToken a = new EncryptedTestToken(Common.DefaultEncryptor, Common.DefaultDecryptor);
//            string expected = "1234567890"; //We should not test complex value values as that would only test the encryption algorythm and not the baseclass.
//            string encrypted = a.Encrypt(expected);
//            string decrypted = a.Decrypt(encrypted);

//            Assert.AreEqual(expected, decrypted);
//            Assert.AreNotEqual(encrypted, decrypted); //ensures that actual transformation takes place
//        }

        
//    }
//}
